package com.shuzhi.dataway.udf;

import com.shuzhi.dataway.service.impl.UserServiceImpl;
import net.hasor.dataql.DimUdf;
import net.hasor.dataql.Hints;
import net.hasor.dataql.Udf;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Siyuan.mlq
 * @version 1.0
 * @description
 * @since 2020/10/21
 */
@Component
@DimUdf("userUdf")
public class UserUdf implements Udf {

  @Resource private UserServiceImpl userService;

  @Override
  public Object call(Hints hints, Object... objects) throws Throwable {
    return userService.userList();
  }
}
